package com.monitor.model;

import com.jfinal.plugin.activerecord.Model;
import com.monitor.utils.DateUtil;

@SuppressWarnings("serial")
public class Log extends Model<Log> {
	public static final Log me = new Log();

	/**
	 * 保存日志
	 * 
	 * @param msg
	 */
	public void saveMsg(String msg) {
		new Log()
				.set("info", msg)
				.set("date",DateUtil.getDateNow())
				.save();
						
	}
}
